﻿using System;
using System.Data;
using DevExpress.XtraEditors;
using PMS.BLL;
using PMS.Entity;
using PMS.Resources;
using PMS.Win;
using PMS.Utils;
using CrystalDecisions.CrystalReports.Engine;
using PMS.Report;

namespace PMS.ReportViewer
{
    public partial class BaoCaoXuatNhapTonViewer2 : BaseForm
    {
        public BaoCaoXuatNhapTonViewer2()
        {
            InitializeComponent();
        }

        public BaoCaoXuatNhapTonViewer2(string MaKy)
        {
            InitializeComponent();
            ReportBO rp = new ReportBO();
            ReportClass r = new Report.BaoCaoXuatNhapTon2();
            DataSet ds = rp.BaoCaoXuatNhapTonReport(MaKy);
            r.SetDataSource(ds);
            crystalReportViewer1.ReportSource = r;
        }
    }
}